package club.easin.sq.dto;

import club.easin.common.BaseDto;
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import java.util.Date;
import javax.persistence.*;

@Table(name = "sq_house")
public class SqHouse extends BaseDto {
    @Id
    private String houseid;

    private String address;

    private String rentout;

    @ColumnType(jdbcType = JdbcType.FLOAT)
    private float area;

    private String structure;

    private String household;

    private Date createtime;

    private Date updatetime;

    private String createuser;
    @ColumnType(jdbcType = JdbcType.FLOAT)
    private float longitude;
    @ColumnType(jdbcType = JdbcType.FLOAT)
    private float latitude;

    /**
     * @return houseid
     */
    public String getHouseid() {
        return houseid;
    }

    /**
     * @param houseid
     */
    public void setHouseid(String houseid) {
        this.houseid = houseid == null ? null : houseid.trim();
    }

    /**
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address
     */
    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    /**
     * @return rentout
     */
    public String getRentout() {
        return rentout;
    }

    /**
     * @param rentout
     */
    public void setRentout(String rentout) {
        this.rentout = rentout == null ? null : rentout.trim();
    }



    /**
     * @return structure
     */
    public String getStructure() {
        return structure;
    }

    /**
     * @param structure
     */
    public void setStructure(String structure) {
        this.structure = structure == null ? null : structure.trim();
    }

    /**
     * @return household
     */
    public String getHousehold() {
        return household;
    }

    /**
     * @param household
     */
    public void setHousehold(String household) {
        this.household = household == null ? null : household.trim();
    }

    /**
     * @return createtime
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * @param createtime
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    /**
     * @return updatetime
     */
    public Date getUpdatetime() {
        return updatetime;
    }

    /**
     * @param updatetime
     */
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    /**
     * @return createuser
     */
    public String getCreateuser() {
        return createuser;
    }

    /**
     * @param createuser
     */
    public void setCreateuser(String createuser) {
        this.createuser = createuser == null ? null : createuser.trim();
    }


    public float getArea() {
        return area;
    }

    public void setArea(float area) {
        this.area = area;
    }

    public float getLongitude() {
        return longitude;
    }

    public void setLongitude(float longitude) {
        this.longitude = longitude;
    }

    public float getLatitude() {
        return latitude;
    }

    public void setLatitude(float latitude) {
        this.latitude = latitude;
    }
}